<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>云南省工业互联网管理平台</title>
    <link rel="stylesheet" href="/front/layui/css/layui.css" />
    <link rel="stylesheet" href="/front/css/bootstrap.css" />
    <link rel="stylesheet" href="/front/css/iconfont.css" />
    <link rel="stylesheet" href="/front/css/base.css" />
    <link rel="stylesheet" href="/front/css/style.min.css" />

    <script type="text/javascript" src="/front/js/jquery-3.3.1.min.js" ></script>
    <script src="/front/js/bootstrap.js"></script>
    <script src="/front/layui/layui.js" charset="utf-8"></script>
    <script src="/front/js/base.js" charset="utf-8"></script>
    <script src="/front/js/api.js" charset="utf-8"></script>
    <script src="/front/js/common.js" charset="utf-8"></script>
</head>
<body>
<div class="commonHead"></div>
<div class="container-fluid">
    <div class="clearfix">
        <div class="commonLeft"></div>
        <div class="myboxr">
            <div class="myboxr-in">
                <!--在此处实现页面布局-->
                <div class="col-sm-10">
                </div>
                <div class="col-sm-2">
                    <button type="button" onclick="toApply()" class="btn my-btn">新建申报材料</button>
                </div>
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="search-top" >
                            <div class="layui-form-item">
                                <form class="layui-form searchList" action="" id="searchForm" style="margin-bottom: 0;">
                                    <div class="layui-inline ">
                                        <label class="layui-form-label">企业名称：</label>
                                        <div class="layui-input-block">
                                            <input name="entName" id="entName" value="" class="form-control input-sm" aria-controls="editable" type="search">
                                        </div>
                                    </div>
                                    <div class="layui-inline ">
                                        <a href="javascript:;" class="btn btn-info btn-sm searchListener"><span class="icon icon-search handle_ioc"></span>搜索</a>
                                    </div>
                                </form>

                                <div class="layui-inline tool_bar " style="float: right;">
                                    <a href="javascript:void(0);" class="btn btn-default btn-sm" onclick="windowloadList()">
                                        <span class="icon icon-refresh handle_ioc"></span>刷新
                                    </a>
                                    <a href="javascript:void(0);" class="btn btn-default btn-sm common-add" onclick="commonAdd(Api.admin.enterprise.addHtml)">
                                        <span class="icon  icon-plus-sign handle_ioc "></span>新增
                                    </a>
                                    <a href="javascript:void(0);" class="btn btn-default btn-sm common-update" onclick="commonUpdate(Api.admin.enterprise.addHtml, 'id')">
                                        <span class="icon icon-edit handle_ioc  "></span>编辑
                                    </a>
                                    <a href="javascript:void(0);" class="btn btn-default btn-sm common-delete" onclick="commonDelete(Api.admin.enterprise.deleteById, 'id')">
                                        <span class="icon icon-remove-sign handle_ioc  "></span>删除
                                    </a>
                                </div>
                            </div>
                        </div>
                        <div class="content">
                            <div>
                                <table class="table" id="table_list" aria-describedby="editable_info" style="table-layout:fixed"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="commonFooter"></div>
<script>
    // 双击效果
    dblclickListApi = {
        URL: '',
        ID: 'id',
        TITLE: '企业详情信息'
    };

    conlums = [{
        field: 'check',
        checkbox: true,
        width: '0',
        class: 'tableCheckStatus',
    },{
        field: 'Number',class: 'tableNumber',//可不加
        title: '序号',
        align: 'center',
        valign: 'top',
        width: '30px',
        formatter: function (value, row, index) {
            return tableNumber(index);
        }
    }, {
        field: 'entName',
        title: '年度',
        align: 'center',
        width: '200'
    },{
        field: 'entCode',
        title: '申报时间',
        width: '200',
        align: 'center'
    },{
        field: 'contactPerson',
        title: '申报方向',
        width: '100',
        align: 'center'
    }, {
        field: 'contactPhone',
        title: '状态',
        width: '100',
        align: 'center'
    },{
        field: 'legalPerson',
        title: '操作',
        width: '120',
        align: 'center'
    }];

    layuiReady(function () {
        _loadingClose();
        // 初始化数据
        init_table(Url.creatUrl('', {}), conlums);
    });

    function toApply() {
        location.href = "/html/front/serviceProvider/serviceProviderApply.html?n=serviceProvider";
    }
</script>
</body>
</html>